event#finish_time loses timezone info when event has a dtstart and duration
Reported by Rick DeNatale | July 6th, 2009 @ 12:21 PM | in 0.7.1
Reported by Paul Scott-Murphy, via email
failing spec in event_spec.rb
it "should uset the timezone of dtstart when event has a duration" do
@it = RiCal.Event do |evt|
evt.dtstart = "TZID=Australia/Sydney:20090712T200000"
evt.duration = "PT1H"
end
@it.finish_time.should == DateTime.parse("2009-07-12T21:00:00+10:00")
end
Comments and changes to this ticket
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A new icalendar data (RFC 2445) gem for Ruby which supports time zones and enumeration of occurrences